package state.pattern.demo;

/**
 * Created by DELL
 * Date: 2019/10/11.
 * Time: 10:03
 */
public class StatePatternEx {
    public static void main(String[] args) {
        RemoteControl initState = new Off();
        TV tv = new TV(initState);
        //First time press
        tv.preesButton();
        //Second time press
        tv.preesButton();
    }
}
